﻿using System;
using System.Web.Mvc;

namespace DotNETStack.Web.UI.Controllers
{
    public class UsersController : BaseController
    {
        public ActionResult Index()
        {
            return View();
        }

        public ActionResult Profile(Int32? id)
        {
            if (!id.HasValue)
            {
                return RedirectToAction("Index");
            }

            ViewData["UserId"] = id;

            return View();
        }
    }
}